﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="kim.Web.index" %>

<%@ Register Src="UsersControls/top.ascx" TagName="top" TagPrefix="top" %>
<%@ Register Src="UsersControls/footer.ascx" TagName="footer" TagPrefix="footer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>
        <%=ViewState["title"] %></title>
    <meta name="keywords" content="<%=ViewState["key"] %>" />
    <meta name="description" content="<%=ViewState["desc"] %>" />
    <link href="style/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="script/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="script/jquery.cenvol.js"></script>
    <script type="text/javascript" src="script/kxbdSuperMarquee.js"></script>
    <script type="text/javascript" src="script/main.js"></script>
</head>
<body>
   <top:top ID="top1" runat="server" />
   <div class="slide" id="slide">
        <h2 class="conceal">
            焦点图</h2>
        <ul>
             <%=new kim.UsersControls.top().GetSlide(8,1,0)%>
        </ul>
        <a href="javascript:;" id="slideBack" title="后退">back</a> <a href="javascript:;"
            id="slideNext" title="前进">next</a>
    </div>
    <div class="mainBox">
        <dl class="homeNewsCon clearfix">
            <dt class="titTop">
                <div class="tit">
                    <h2>
                        新闻头条</h2>
                    <a href="news.aspx?typeid=1&fid=2" title="更多">more&gt;&gt;</a>
                </div>
                <ul>
                  <%=GetNewListView(9,1,2)%>
                </ul>
            </dt>
            <dd class="titTop">
                <div class="tit">
                    <h2>
                        公告中心</h2>
                    <a href="news.aspx?typeid=2&fid=2" title="更多">more&gt;&gt;</a>
                </div>
                <ul>
                    <%=GetNewListView(9,2,1)%>
                </ul>
            </dd>
        </dl>
      <%=htmltext[0] %>
        <div class="layout educationCon">
            <h2 class="layoutTit">
                远程教育</h2>
            <div class="layoutSmall f_l remoteSide">
                <div class="enrollCon">
                    <h3>
                        录取学员</h3>
                    <div class="view-wrap" id="enrollGd">
                        <ul>
                        <asp:Repeater ID="rptLqxy" runat="server">
                        <ItemTemplate>
                          <li><span><%#Eval("Name")%></span>&nbsp;&nbsp;|&nbsp;&nbsp;<%#Eval("jj")%></li>
                        </ItemTemplate>
                        </asp:Repeater>
                          
                          
                        </ul>
                    </div>
                </div>
                 <a href="apply.aspx" class="btnApply" title="网上报名">
                    <img src="image/btnApply.png" alt="网上报名" /></a>
                <div class="consultCon">
                    <h3>
                        信息咨询</h3>
                    <div class="content">
                        &nbsp;&nbsp;&nbsp;&nbsp;资讯热线：<strong><%=strTet %></strong>
                    </div>
                </div>
                <div class="otherCon">
                    <a href="#" title="远程学习/作业平台">
                        <img src="image/btnLearn.png" alt="远程学习/作业平台" /></a> <a href="#" title="论文/答辩平台">
                            <img src="image/btnPaper.png" alt="论文/答辩平台" /></a> <a href="#" title="录取查询">
                                <img src="image/btnEnroll.png" alt="录取查询" /></a> <a href="#" title="学历查询">
                                    <img src="image/btnDiploma.png" alt="学历查询" /></a>
                </div>
            </div>
            <div class="layoutBig f_r schoolCon">
                <h3 class="conceal">
                    学校展示</h3>
                <dl class="clearfix" id="xx">
                    <dt>
                        <div class="view-wrap" id="schoolGdd">
                            <ul>
                                
                                <asp:Repeater ID="rptXxzs" runat="server">
                                <ItemTemplate>
                                <li ><a href="javascript:;" title="<%#Eval("Name") %>" iid="<%#Eval("id") %>">
                                    <img src="<%#Eval("pic") %>" alt="<%#Eval("Name") %>" /></a></li>
                                </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                        <a href="javascript:;" class="schoolGdBack" id="schoolGddBack" title="后退">back</a>
                        <a href="javascript:;" class="schoolGdNext" id="schoolGddNext" title="前进">next</a>
                    </dt>
                          <dd>
                        <div class="synopsis"></div>
                       
                        <div class="specialty">
                            <h4 class="tit">优势专业</h4>
                            <div id="zy"></div>
                        </dd>
                </dl>
            </div>
            <script type="text/javascript">
                $(function () {


                    $("#schoolGdd li a").click(function () {
                        var nid = $(this).attr("iid");
                        var _ajaxUrl = "tools/ajax.aspx";
                        $.ajax({
                            url: _ajaxUrl, type: "get",
                            dataType: "json",
                            data: "action=getschool&nid=" + nid + "&t=" + new Date(),
                            success: function (d) {
                                if (d.RScode == 0) { $("#zy").html("<p>暂无记录！</p>"); return; }

                                else {
                                    var items = d.RSitem; var temp = "";
                                    temp = "<a href=\"newsDetails.aspx?id=" + d._nid + "&fid=3\" class=\"synopsisImg\" title=\"" + d._title + "\"><img src=\"" + d._pic + "\" /></a>";
                                    temp += "  <h4><a href=\"newsDetails.aspx?id=" + d._nid + "&fid=3\" class=\"synopsisTit\" title=\"" + d._title + "\">" + d._title + "</a></h4>";
                                    temp += "<p>" + d._jj + "</p>";
                                    temp += " <a href=\"newsDetails.aspx?id=" + d._nid + "&fid=3\" class=\"more\" title=\"查看详情>>\">查看详情&gt;&gt;</a>";
                                    $(".synopsis").html(temp);
                                    var temps = "";
                                    if (d._Rzy == 0) { $("#zy").html("<p>暂无记录!</p>"); return; }
                                    else {

                                        temps = "  <div class=\"specialtyTop\">";
                                        temps += " <a href=\"newsDetails.aspx?id=" + items[0]._i + "&fid=3\" class=\"specialtyImg\" title=\"" + items[0]._t + "\"><img src=\"" + items[0]._pic + "\" /></a>";
                                        temps += "<h5><a href=\"newsDetails.aspx?id=" + items[0]._i + "&fid=3\" class=\"specialtyTit\" title=\"" + items[0]._t + "\">" + items[0]._t + "</a></h5>";
                                        temps += "<p>" + items[0]._con + "</p></div>";
                                        temps += "<ul class=\"specialtyList clearfix\">";
                                        for (var i = 0; i < items.length; i++) {
                                            temps += "  <li><a href=\"newsDetails.aspx?id=" + items[i]._i + "&fid=3\" title=\"" + items[i]._t + "\">" + items[i]._t + "</a></li>";
                                        }
                                        temps += "</ul>";
                                        temps += " <a href=\"professional.aspx?nid=" + d._nid + "&fid=3\" class=\"more\" title=\"参看所有专业>>\">参看所有专业&gt;&gt;</a>";
                                        $("#zy").html(temps);
                                    }

                                }
                            }
                        })
                    });
                    $("#schoolGdd li a:eq(0)").click();
                })
            </script>
        </div>
        <%=htmltext[1] %>
        <div class="selfStudyCon">
            <h2 class="selfStudyConTit">
                自考</h2>
            <dl>
                <dt class="titTop">
                    <div class="dynamicCon">
                        <div class="tit">
                            <h3>
                                自考动态</h3>
                            <a href="selfStudy.aspx" title="更多">more&gt;&gt;</a></div>
                        <ul>
                        <asp:Repeater ID="rptZkdt" runat="server">
                        <ItemTemplate>
                            <li><a href="newsDetails.aspx?id=<%#Eval("id") %>" title="<%#Eval("Name") %>"><%#Eval("Name") %></a><span><%#((DateTime)Eval("InTime")).ToString("yyyy-MM-dd")%></span></li>
                        
                        </ItemTemplate>
                        </asp:Repeater>
                            
                            <!--必须程序限定a的字符长度，超出部分省略号，因为IE6不兼容溢出隐藏-->
                        </ul>
                    </div>
                    <div class="videoCon">
                        <h3 class="tit">
                            自考双证介绍</h3>
                        <div class="videos">
                            <img src="image/videoImg1.jpg" />
                        </div>
                    </div>
                </dt>
                <dd>
                    <div class="schoolCon titTop">
                        <div class="tit">
                            <h3>
                                自考院校</h3>
                            <a href="selfStudy.aspx" title="更多">more&gt;&gt;</a></div>
                        <div class="content">
                            <div class="view-wrap" id="schoolGd">
                                <ul class="clearfix">
                                <asp:Repeater ID="rptZkxy" runat="server">
                                <ItemTemplate>
                                <li><a href="newsDetails.aspx?id=<%#Eval("id") %>" title="<%#Eval("Name") %>">
                                        <img src="<%#Eval("pic") %>" alt="<%#Eval("Name") %>"></a></li>
                                </ItemTemplate>
                                </asp:Repeater>
                                </ul>
                            </div>
                            <a href="javascript:;" class="schoolGdBack" id="schoolGdBack" title="后退">back</a>
                            <a href="javascript:;" class="schoolGdNext" id="schoolGdNext" title="前进">next</a>
                        </div>
                    </div>
                    <div class="certificateCon titTop">
                        <div class="tit">
                            <h3>
                                证书展示</h3>
                            <a href="#" title="更多">more&gt;&gt;</a></div>
                        <div class="content">
                            <div class="view-wrap" id="certificateGd">
                                <ul class="clearfix">
                                <asp:Repeater ID="rptZszs" runat="server">
                                <ItemTemplate>
                                <li><a  title="<%#Eval("Name") %>">
                                        <img src="<%#Eval("Pic") %>" /></a></li>
                                </ItemTemplate>
                                </asp:Repeater>
                                    
                                    
                                </ul>
                            </div>
                            <a href="javascript:;" class="certificateGdBack" id="certificateGdBack" title="后退">back</a>
                            <a href="javascript:;" class="certificateGdNext" id="certificateGdNext" title="前进">next</a>
                        </div>
                    </div>
                </dd>
            </dl>
        </div>
         <%=htmltext[2] %>
        <div class="layout examCon">
            <h2 class="layoutTit">
                技能考证</h2>
            <div class="layoutSmall f_l">
                <h3 class="conceal">
                    技能职称</h3>
                <div class="view-wrap" id="examGd">
                    <ul>
                    <asp:Repeater ID="rptJnzc" runat="server">
                    <ItemTemplate>
                    <li><a href="newsDetails.aspx?id=<%#Eval("id") %>" title="<%#Eval("Name") %>"><%#Eval("Name") %></a></li>
                    </ItemTemplate>
                    </asp:Repeater>
                        

                    </ul>
                </div>
                <a href="javascript:;" class="examGdBack" id="examGdBack" title="后退">back</a> <a
                    href="javascript:;" class="examGdNext" id="examGdNext" title="前进">next</a>
            </div>
            <div class="layoutBig f_r titTop">
                <div class="tit">
                    <h3>
                        技能资讯</h3>
                    <a href="#" title="更多">more&gt;&gt;</a></div>
                <ul>
                    
                     <%=GetNewListView(9,1,7)%>
                </ul>
            </div>
        </div>
        <a href="#" class="mainBanner" title="远程学习流程图">
            <img src="image/banner4.jpg" alt="远程学习流程图：报名咨询>入学考试>高考录取>缴费注册>导学>课程考试>课程考试>毕业" /></a>
        <div class="layout aboutCon">
            <h2 class="layoutTit">
                关于我们</h2>
            <div class="layoutSmall f_l titTop">
                <div class="tit">
                    <h3>
                        常见问题</h3>
                    <a href="news.aspx?typeid=1&fid=1" title="更多">more&gt;&gt;</a></div>
                <ul>
               <asp:Repeater ID="rptCjwt" runat="server">
               <ItemTemplate>
               <li><a href="newsDetails.aspx?id=<%#Eval("id") %>" title="<%#Eval("Name") %>"><%#Eval("Name") %></a></li>
               </ItemTemplate>
               </asp:Repeater>
                    
                    
                   
                </ul>
            </div>
            <div class="layoutBig f_r titTop" id="topConus">
                <div class="tit">
                    <h3>
                        联系我们</h3>
                    <a href="#" title="更多">more&gt;&gt;</a></div>
                
                      <%=kim.UI.BasePage.GetAboutText(2, 9)%>
             
            </div>
        </div>
        <div class="links">
            <h2>
                友情链接</h2>
            <div class="content">
                <%=kim.UI.BasePage.GetAboutText(2,0)%>
                                
                                </div>
        </div>
    </div>
    <footer:footer ID="footer1" runat="server" />

    <script type="text/javascript">
        $(function () {
            $("#topConus ul").addClass("clearfix");
            $("#schoolGdd li:eq(0)").addClass("current");
            $("#xx dd ul").addClass("specialtyList clearfix");
        })
    </script>
</body>
</html>
